package guava;

import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

/**
 * 根据两个key（两个坐标）获取值的map
 * @author zhoujie
 * @date 2020-07-31
 */
@Slf4j
public class HashBashTableTest {

    @Test
    public void test01(){
        Table<Integer, Integer, String>g= HashBasedTable.create();
        //根据两个id查询
        g.put(1,2,"sky");
        log.info(g.get(1,2));
    }
}
